﻿

using IotContract.Enums;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Webs;
[ProtoContract]
public class WebControlModel
{
    /// <summary>
    /// 设备编号
    /// </summary>
    [ProtoMember(1)]
    public int EquipNum { get; set; }
    /// <summary>
    /// 1:连接  2:断开  3:写入
    /// </summary>
    [ProtoMember(2)]
    public int ControlType { get; set; }
    /// <summary>
    /// 写入的值
    /// 当ControlType为3时，需要加上Value，格式为 Command*Data*Data.....,如909、915*P等
    /// Command必须有，Data可选，有Data必须加上*
    /// </summary>
    [ProtoMember(3)]
    public string Value { get; set; }
    
}
